#! /bin/sh
if [ -z "$GG_HOME" -o ! -d "$GG_HOME" ] ; then
  ## resolve links - $0 may be a link to ant's home
  PRG="$0"
  progname=`basename "$0"`

  # need this for relative symlinks
  while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`"/$link"
    fi
  done

  GG_HOME=`dirname "$PRG"`/..

  # make it fully qualified
  GG_HOME=`cd "$GG_HOME" > /dev/null && pwd`
fi

java -cp "$GG_HOME/lib/gg.jar" com.xmxsuperstar.app.gg.Main $*